export enum RequestEnum {

    GET = 'GET',

    POST = 'POST',

    PUT = 'PUT',

    DELETE = 'DELETE',
}


export enum ContentTypeEnum {
    // json
    JSON = 'application/json;charset=UTF-8',
    // form-data qs
    FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8',
    // form-data  upload
    FORM_DATA = 'multipart/form-data;charset=UTF-8',
}


export enum ResultEnum {

    SUCCESS = 0,

    ERROR = -1,

    NOLOGIN = 401,

}

export enum ResponseMessage {

    SUCCESS = '成功',

    WARNING = '警告',

    ERROR = '错误',

    NOLOGIN = '未登录',

    TIMEOUT = '超时'
}

export enum ErrorEnum {

    ERROR401 = 401,

    ERROR500 = 500,

    ERROR502 = 502,

}

export enum ErrMsgnum {

    ERROR_ECONNABORTED_MESSAGE="接口请求超时,请刷新页面重试!",

    ERROR_Network_MESSAGE='网络异常，请检查您的网络连接是否正常!',

    ERROR401_MESSAGE = '用户没有权限（令牌、用户名、密码错误）!',

    ERROR500_MESSAGE = '服务器异常！',

    ERROR502_MESSAGE = '网络错误！',

}